//
//  OrderCell.m
//  GuoBang
//
//  Created by 梧桐树 on 16/5/3.
//  Copyright © 2016年 梧桐树. All rights reserved.
//

#import "OrderCell.h"

@implementation OrderCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)loadCell{
   // OrderView *bgView=[[OrderView alloc]initWithFrame:];
    NSArray *arr=[[NSBundle mainBundle]loadNibNamed:@"OrderView" owner:nil options:nil];
    OrderView *bgView=[arr objectAtIndex:0];
    bgView.title.text=self.title;
    bgView.icon.image=[UIImage imageNamed:_icon];
    bgView.frame= CGRectMake(10, 10, WIDTH-20, 1);
    if(_addHiden==2){
    
        bgView.addBtn.hidden=NO;
    }
   // NSLog(@"%d",_dataArry.count);
    bgView.style=self.style ;
    bgView.layer.cornerRadius=5;
    bgView.dataArry=self.dataArry;
    bgView.delegate = self;
    [bgView loadView];
    self.frame=CGRectMake(self.frame.origin.x, self.frame.origin.y, WIDTH, bgView.frame.size.height+20);
    [self addSubview:bgView];
    
    self.backgroundColor=[SEATools stringToColor:@"EFEFF4"];

}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


-(void)dingKaFei
{
    
    NSLog(@"着走了吗");
    [self.myDelegate bangKaFei];
    
}

-(void)yaodache
{
    NSLog(@"着走了吗");
    [self.myDelegate bangYaoDache];
}


@end
